package com.masterrabbit.utils;


import lombok.Data;

import java.util.List;

@Data
public class MapMarker {
    // Getter 和 Setter
    private Long id;
    private Double latitude;
    private Double longitude;
    private String title;
    private Integer width;
    private Integer height;
    private String animation;
    private Callout callout;
    //目标距离位置
    private String distance;
    /**
     * 手机号
     */
    private String phoneNumber;
    /**
     * 详细地址
     */
    private String detailedAddress;
    /**
     * 门面照片id（外键图片ID）
     */
    List<String> images;
    /**
     * 营业时间
     */
    private String businessHours;
    private int star;//评分
    private Integer  merchantId;//商家id

    // 内部类表示 callout
    public static class Callout {
        private String content;
        private String bgColor;
        private Integer borderRadius;
        private Integer padding;
        private String textAlign;
        private String display;

        // 构造函数、getter 和 setter 略
        public Callout(String content, String bgColor, Integer borderRadius, Integer padding, String textAlign, String display) {
            this.content = content;
            this.bgColor = bgColor;
            this.borderRadius = borderRadius;
            this.padding = padding;
            this.textAlign = textAlign;
            this.display = display;
        }

        // Getter 和 Setter
        public String getContent() { return content; }
        public void setContent(String content) { this.content = content; }
        public String getBgColor() { return bgColor; }
        public void setBgColor(String bgColor) { this.bgColor = bgColor; }
        public Integer getBorderRadius() { return borderRadius; }
        public void setBorderRadius(Integer borderRadius) { this.borderRadius = borderRadius; }
        public Integer getPadding() { return padding; }
        public void setPadding(Integer padding) { this.padding = padding; }
        public String getTextAlign() { return textAlign; }
        public void setTextAlign(String textAlign) { this.textAlign = textAlign; }
        public String getDisplay() { return display; }
        public void setDisplay(String display) { this.display = display; }
    }

    // 构造函数
    public MapMarker(Long id, Double latitude, Double longitude, String title, Integer width, Integer height, String animation, Callout callout,String distance) {
        this.id = id;
        this.latitude = latitude;
        this.longitude = longitude;
        this.title = title;
        this.width = width;
        this.height = height;
        this.animation = animation;
        this.callout = callout;
        this.distance=distance;
    }


}